package com.instwall.callnumlistener.task;

import com.instwall.callbase.thread.BasicTask;
import com.instwall.callnumlistener.CallNumNotification;
import com.instwall.callnumserver.ICallNumListener;

public class RemoveClientTask extends BasicTask {

    private ICallNumListener listener;

    public RemoveClientTask(ICallNumListener listener) {
        this.listener = listener;
    }

    @Override
    public void doWork() {
        if (listener == null) return;
        CallNumNotification.mListeners.unregister(listener);
    }

    @Override
    public void cancel() {

    }

    @Override
    public int getPriority() {
        return 0;
    }
}
